package com.kun.lagou.user.api;

import com.kun.lagou.user.api.dto.UserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Administrator
 */
@FeignClient(value = "user-service", contextId = "user-service")
public interface UserApi {
    @GetMapping("/user/rpc/users/{userId}/info")
    UserInfo getUserInfo(@PathVariable("userId") long userId);
}
